<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Main Page</title>
    <style>
        ul{list-style-type: none}
    </style>
</head>
<body>
<ul>
    <li><a target="_blank" href="https://blog.csdn.net/u014390502/article/details/142965667">重学SpringBoot3-集成Spring Security（一）</a></li>
    <li><a target="_blank" href="https://coderjia.blog.csdn.net/article/details/142991973">重学SpringBoot3-集成Spring Security（二）</a></li>
    <li><a target="_blank" href="https://blog.csdn.net/u014390502/article/details/143030838">重学SpringBoot3-集成Spring Security（三）</a></li>
    <li><a target="_blank" href="https://blog.csdn.net/u014390502/article/details/143064075">重学SpringBoot3-集成Spring Security（四）</a></li>
    <li>5</li>
</ul>
<h2><span>Welcome to my page</span>!</h2>
<a th:href="@{/admin}">访问受限资源</a>
<br/>
<ul>
    <li><a target="_blank" href="/user/profile">只有 USER 角色才能访问</a></li>
    <li><a target="_blank" href="/admin/dashboard">只有 ADMIN 角色才能访问</a></li>
    <li><a target="_blank" href="/admin/getUserInfo?username=admin">自定义权限表达式: 当前登录用户是 ADMIN，或者请求的 username 与登录用户一致时允许访问</a></li>
    <li><a target="_blank" href="/greeting">测试thymeleaf 模板引擎 /greeting</a></li>
    <li><a target="_blank" href="/home"> 防范XSS /home</a></li>
</ul>
<form th:action="@{/login}" method="post">
    <button type="submit">Post方式登出</button>
</form>
<br>
<a th:href="@{/logout}">Get方式登出</a>
</body>
</html>